﻿@{
    Layout = null;
}
@using System.Linq;
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title - StrongWorld</title>
    <link href="@Url.Content("~/Areas/Master/Common/css/common.css")" rel="stylesheet" />
    <link href="@Url.Content("~/Areas/Master/Common/css/fluid.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Areas/Master/Common/icons/icons.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Areas/Master/Common/css/jui/jquery.ui.css")" rel="stylesheet" type="text/css" />
    <link rel="shortcut icon" href="/favicon.ico" />
    <link rel="bookmark" href="/favicon.ico" />
    <script type="text/javascript" src="@Url.Content("~/Areas/Master/Common/js/jquery-1.7.1.min.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Areas/Master/Common/js/jquery-ui.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Areas/Master/Common/js/json2.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Areas/Master/Common/js/common.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Areas/Master/Common/js/Utils.js")"></script>
    <!--
        var controllerName = String.Empty;
        var actionName = String.Empty;
        var routeData = ViewContext.RouteData.Route.GetRouteData(Context);
        if (routeData != null)
        {
        controllerName = routeData.Values["controller"].ToString();
        actionName = routeData.Values["action"].ToString();
        }
        -->
    <script type="text/javascript">
        $(function () {
            @if(ViewBag.MenuCode!=null){
            @:CurrentMenu('@ViewBag.MenuCode');
            }
        })
    </script>
    @RenderSection("Header", false)
</head>
<body>
    <div id="header" class="clearfix">
        <div id="logo-container">
            <div id="logo-wrap">
                <img src="@Url.Content("~/Areas/Master/Common/images/logo.png")" alt="logo" />
            </div>
        </div>

        <div id="user-tools" class="clearfix">
            <div id="user-notif" class="dropdown-menu">
                <a href="#" class="i-24 i-alert-2 dropdown-trigger">提醒</a>
                <span class="dropdown-notif">10</span>
                <div class="dropdown-box">
                    <div class="dropdown-content">
                        <ul class="notifications">
                            <li class="read">
                                <a href="#">
                                    <span class="message">
                                        个人待办事项一
                                    </span>
                                    <span class="time">
                                        2012.01.21
                                    </span>
                                </a>
                            </li>
                            <li class="read">
                                <a href="#">
                                    <span class="message">
                                        个人待办事项二
                                    </span>
                                    <span class="time">
                                        2012.01.21
                                    </span>
                                </a>
                            </li>
                            <li class="unread">
                                <a href="#">
                                    <span class="message">
                                        个人待办事项三
                                    </span>
                                    <span class="time">
                                        2012.01.21
                                    </span>
                                </a>
                            </li>
                            <li class="unread">
                                <a href="#">
                                    <span class="message">
                                        个人待办事项四
                                    </span>
                                    <span class="time">
                                        2012.01.21
                                    </span>
                                </a>
                            </li>
                        </ul>
                        <div class="dropdown-viewall">
                            <a href="#">查看所有消息</a>
                        </div>
                    </div>
                </div>
            </div>
            <div id="user-message" class="dropdown-menu">
                <a href="#" class="i-24 i-message dropdown-trigger">站内信</a>
                <span class="dropdown-notif">5</span>
                <div class="dropdown-box">
                    <div class="dropdown-content">
                        <ul class="messages">
                            <li class="read">
                                <a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet consectetur adipiscing elit, et al commore
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                            <li class="read">
                                <a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                            <li class="unread">
                                <a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                            <li class="unread">
                                <a href="#">
                                    <span class="sender">John Doe</span>
                                    <span class="message">
                                        Lorem ipsum dolor sit amet
                                    </span>
                                    <span class="time">
                                        January 21, 2012
                                    </span>
                                </a>
                            </li>
                        </ul>
                        <div class="dropdown-viewall">
                            <a href="#">查看所有站内信</a>
                        </div>
                    </div>
                </div>
            </div>
            <div id="user-info" class="inset">
                <div id="user-photo">
                    <img src="" alt="User Photo" />
                </div>
                <div id="user-functions">
                    <div id="username">
                        你好,KevinChoi
                    </div>
                    <ul>
                        <li><a href="#">个人信息</a></li>
                        <li><a href="#">修改密码</a></li>
                        <li><a href="@Url.Action("Logout","Login")">退出</a></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <!-- Main Wrapper -->
    <div id="wrapper">
        <!-- Necessary markup, do not remove -->
        <div id="sidebar-stitch"></div>
        <div id="sidebar-bg"></div>

        <!-- Sidebar Wrapper -->
        <div id="sidebar">
            <!-- Search Box -->
            <div id="searchbox" class="inset">
                <form>
                    <input type="text" class="search-input" />
                    <input type="submit" class="search-submit" />
                </form>
            </div>
            <div id="navigation">
                @if (ViewBag.Menus != null)
                {
                    <ul>
                        @foreach (var menu in ViewBag.Menus)
                        {
                            <li code="@menu.Code">
                                @if (menu.ControllerName != "#")
                                {
                                    <a href="@Url.Action(menu.ActionName, menu.ControllerName)" class="i-24 @menu.Icon">@menu.Title</a>
                                }
                                else
                                {
                                    <a href="javascript:void(0);" class="i-24 @menu.Icon">@menu.Title</a>
                                }
                                @if (menu.Children != null && menu.Children.Count > 0)
                                {
                                    <ul class="subMenu closed">
                                        @foreach (var sub in menu.Children)
                                        {
                                            <li code="@sub.Code"><a href="@Url.Action(sub.ActionName, sub.ControllerName)">@sub.Title</a></li>
                                        }
                                    </ul>
                                }
                            </li>
                        }
                    </ul>
                }
            </div>
        </div>
        <div id="container" class="clearfix">
            <div class="container">
                @RenderBody()
            </div>
            <div id="footer">
                COPYRIGHT &copy; 2014.D9TEC TEAM. ALL RIGHTS RESERVED.
            </div>
        </div>
    </div>
</body>
</html>